﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using VanTaiData;
using VanTaiProperty;
namespace VanTaiBLL
{
    public class clsBusiness_tb_Roles
    {
        public static clsControllertb_Roles cls = new clsControllertb_Roles();
        #region[Get-Data]
        public DataTable BindGridRoles()
        {
            return cls.BindGridRoles();
        }
        public DataTable BindGridRoles_Detail_Edit(int id)
        {
            return cls.BindGridRoles_Detail_Edit(id);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertRoles(VanTaiProperty.clsTMRolesProperty obj)
        {
            return cls.InsertRoles(obj);
        }
        public static bool UpdateRoles(VanTaiProperty.clsTMRolesProperty obj)
        {
            return cls.UpdateRoles(obj);
        }
        public bool Check_Del_tb_Users(int id)
        {
            return cls.Check_Del_tb_Users(id);
        }
        public bool Check_Del_tb_UserPermiss(int id)
        {
            return cls.Check_Del_tb_UserPermiss(id);
        }
        public static bool DeleteRoles(int id)
        {
            return cls.DeleteRoles(id);
        }
        #endregion

        #region[Search]
        public DataTable Search(string keywords)
        {
            return cls.Search(keywords);
        }
        #endregion
    }
}
